<p>
    <b>Topic:</b>
    <%if @user_talk.star == 1 %>
    <%= link_to image_tag("16-star-hot_16x16.png"), :action => :change_star_show, :id => @user_talk.id %>
    <%else %>
    <%= link_to image_tag("16-star-cold_16x16.png"), :action => :change_star_show, :id => @user_talk.id %>
    <%end %>
    <%=h @talk.topic %>
</p>
<p>
    <b>Body:</b>
    <%=h @talk.body %>
</p>
<p>
    <%= link_to 'Send invitations', new_invitation_path %>
</p>
<%= link_to 'Comments', talk_talkees_path(@talk) %>
<%= link_to 'Edit', edit_talk_path(@talk) %> |<%= link_to 'Back', talks_path %>
<div>
    <!-- #1 --><% if @talk.talkees.empty? %>
    <h5>No comments yet</h5>
    <% else %>
    <%if @talker %>
    <h3>Only <%= @talker.name %>'s Comments(<%= h @talkees.length %>) <%= link_to 'Show All Comments', @talk %></h3>
    <%else %>
    <h3>All Comments(<%= h @talkees.length %>)</h3>
    <%end %>
    <table id="talkee_list">
    	<tbody id="talkee_body_list">
			<%= render(:partial => 'talkee', :collection => @talkees) %>
		</tbody>
    </table>
    <% end %>
</div>
<!-- #2 -->
<p id="add_link">
    <%=
    link_to_function("New Talkee",
    "Element.toggle('new_talkee')") %>
</p>
<div id="new_talkee" style="display:none;">
    <% form_remote_tag :url => {:action => 'new_talkee'},
    :html => {:id => 'new_talkee_form'} do%>
  <p>
    <%= text_area 'talkee', 'body' %>
  </p>
  <p>
    <%= submit_tag 'Add', :class => "submit" %>
  </p>
	<% end %>
</div>
<!-- 
<% form_remote_tag (:url => {:action => 'new_talkee', :id => @talk }, :html => {:id => 'reply_talkee_div'}) do %>
<p>
    <%= text_area 'talkee', 'body', :size => "50x5" %>
</p>
<p>
    <%= submit_tag "add new comment" %>
</p>
<% end %>
-->
